<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<#include "/common/resources.ftl"/>
<script type="text/javascript">
	function m_submit(){
		window.saveOrEditForm.submit();
	}
	
	function m_back(){
		window.location.href = 'manage';
	}
	<#if errorMsg?exists >alert('${errorMsg}');</#if>
</script>
</head>
<body>
  <form action="${ctx}/commissionRules/commissionrules/save_edit" method="post" class="loan_list_form" name="saveOrEditForm">
  <input type="hidden" name="id" value="<#if model?exists >${model.id}</#if>" />
  <div class="fm_sty" style="margin: 20px 0px 0px;">
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">佣金规则公共表主键</span>
				<input type="text" name="relationId" value="<#if model?exists >${model.relationId}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">分组ID</span>
				<input type="text" name="groupId" value="<#if model?exists >${model.groupId}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">佣金类型</span>
				<input type="text" name="commissionType" value="<#if model?exists >${model.commissionType}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">佣金比例</span>
				<input type="text" name="commissionRate" value="<#if model?exists >${model.commissionRate}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">佣金金额</span>
				<input type="text" name="commissionAmmount" value="<#if model?exists >${model.commissionAmmount}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">规则</span>
				<input type="text" name="rule" value="<#if model?exists >${model.rule}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">结算周期</span>
				<input type="text" name="settlementCycle" value="<#if model?exists >${model.settlementCycle}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">生效时间</span>
				<input type="text" name="effectTime" value="<#if model?exists >${model.effectTime?string("yyyyMMdd HH:mm:ss")}</#if>" class="easyui-datebox" panelWidth="255" style="height:39px;"/>
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">失效时间</span>
				<input type="text" name="lostTime" value="<#if model?exists >${model.lostTime?string("yyyyMMdd HH:mm:ss")}</#if>" class="easyui-datebox" panelWidth="255" style="height:39px;"/>
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">优先级</span>
				<input type="text" name="level" value="<#if model?exists >${model.level}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">备注</span>
				<input type="text" name="remark" value="<#if model?exists >${model.remark}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">排序</span>
				<input type="text" name="sort" value="<#if model?exists >${model.sort}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">创建人主键ID</span>
				<input type="text" name="createUserId" value="<#if model?exists >${model.createUserId}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">创建时间</span>
				<input type="text" name="createTime" value="<#if model?exists >${model.createTime?string("yyyyMMdd HH:mm:ss")}</#if>" class="easyui-datebox" panelWidth="255" style="height:39px;"/>
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">更新人主键ID</span>
				<input type="text" name="updateUserId" value="<#if model?exists >${model.updateUserId}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">更新时间</span>
				<input type="text" name="updateTime" value="<#if model?exists >${model.updateTime?string("yyyyMMdd HH:mm:ss")}</#if>" class="easyui-datebox" panelWidth="255" style="height:39px;"/>
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">状态</span>
				<input type="text" name="state" value="<#if model?exists >${model.state}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">删除</span>
				<input type="text" name="delFlag" value="<#if model?exists >${model.delFlag}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
      <div class="ipt_line_long">
            <button class="red_100" onclick="javascript:m_submit();return false;">保存</button>
            <button class="red_100" onclick="javascript:m_back();return false;" style="background-color:#74D86A">返回</button>
      </div>
	</div>
	</form>
</body>
</html>
